﻿namespace YunQue.Core.DB.Entity
{
    /// <summary>
    /// 实体的事件
    /// </summary>
    public class EntityEvent
    {
        /// <summary>
        /// 事件类型
        /// </summary>
        public EntityEventType EventType { get; set; }
        /// <summary>
        /// 实体数据
        /// </summary>
        public Dictionary<string, string> EntityDic { get; set; }
    }
    /// <summary>
    /// 事件类型
    /// </summary>
    public enum EntityEventType
    {
        /// <summary>
        /// 创建
        /// </summary>
        Create,
        /// <summary>
        /// 更新
        /// </summary>
        Update,
        /// <summary>
        /// 删除
        /// </summary>
        Delete
    }

}
